package com.health.entity;

import com.health.entity.HealthStandardValue;

public enum HealthGrade {
    IDEAL(0, 20),
    GOOD(21, 40),
    MODERATELY_UNHEALTHY(41, 60),
    MILDLY_UNHEALTHY(61, 80),
    SERIOUSLY_UNHEALTHY(81, 100),
    HIGH_RISK(101, Double.MAX_VALUE);

    private final double minScore;
    private final double maxScore;

    HealthGrade(double minScore, double maxScore) {
        this.minScore = minScore;
        this.maxScore = maxScore;
    }

    public boolean includesScore(double score) {
        return score >= minScore && score <= maxScore;
    }

    // 获取用户健康评分并确定等级

}


